{extend name="public/common"} {block name="body"}
<title>基本设置</title>
</head>
<body>
  <nav class="breadcrumb">
    <i class="Hui-iconfont">&#xe67f;</i>
   
系统管理
    <span class="c-gray en">&gt;</span>
     APP管理
    <span class="c-gray en">&gt;</span>
 版本管理
    <a class="btn btn-success radius r"
      style="line-height: 1.6em; margin-top: 3px"
      href="javascript:location.replace(location.href);" title="刷新">
      <i class="Hui-iconfont">&#xe68f;</i>
    </a>
  </nav>

  <div class="page-container dataTables_wrapper">
      <div id="tab-system" class="HuiTab">
        <div class="tabCon">
          <div class="mt-20">
            <table
              class="table table-border table-bordered table-bg table-hover table-sort table-responsive">
              <thead>
                <tr class="text-c">
         
                  <th>序号</th>
                  <th>版本</th>
                  <th>文件路径</th>
                  <th>上传时间</th>
                  <th>类型</th>
				  <th>系统</th>
                  <th>操作</th>
                </tr>
              </thead>
              <tbody>
  				{foreach ($list as $value)}
               <tr class="text-c">
           		
                  <td>
                 		{$value.number}
                  </td>
                  <td>{$value.version}</td>
                  <td>{$value.version_url}</td>
                  <td>{$value.url_time|date="Y-m-d H:i:s",###}</td>
                  <td>{if($value.type==1)}收款监听APP{/if}{if($value.type==2)}赢彩APP{/if}</td>
                  <td>{if($value.systemtype==1)}安卓{/if}{if($value.systemtype==2)}ios{/if}</td>
                  <td>
                    <a href="{:url('statistics/saveVersion')}?uid={$value.id}&type={$value.type}&system={$value.systemtype}" title="修改"><i class="Hui-iconfont">&#xe6df;</i></a>&nbsp;&nbsp;&nbsp;
                  <a onclick="if(confirm('确定删除吗?')==false)return false;" href="{:url('Statistics/VersionDel')}?uid={$value.id}&type={$value.type}&system={$value.systemtype}"><i class="Hui-iconfont">&#xe609;</i></a>
                  </td>
                </tr>
				{/foreach}
              </tbody>
            </table>
          </div>
        </div>
      </div>
      <div class="dataTables_paginate paging_simple_numbers" style="width:100%;">
            <span style="float:right;margin-left:-2px;">总共{$list->lastPage()}页  当前第{$list->currentPage()}页 ，共{$list->total()}条</span>
            <div style="float:left;">{$list->render()}</div>
    </div>
  </div>
{/block}

{block name="js"}
  <script type="text/javascript" src="__SYSMET__/lib/My97DatePicker/4.8/WdatePicker.js"></script> 
  <script type="text/javascript">
    $(function() {
      $('.skin-minimal input').iCheck({
        checkboxClass : 'icheckbox-blue',
        radioClass : 'iradio-blue',
        increaseArea : '20%'
      });
      $("#tab-system").Huitab({
        index : 0
      });
    });
    
</script>
<script type="text/javascript">
function Jurisdiction(title,url,w,h){
	layer_show(title,url,w,500);
}

function pay_detail(title,url){
	var index = layer.open({
		type: 2,
		title: title,
		area: ['90%', '90%'],
		content: url
	});
}

function pay_account(title,url){
	var index = layer.open({
		type: 2,
		title: title,
		area: ['90%', '90%'],
		content: url
	});
}

$(".open").click(function(){
	var open = $(this).attr('id');
	var status = $("#"+open).html();
	var tid = open.substr(5);
	$.ajax({
        type : "post",
        url : "{:url('paysetting/updateOpen')}",
        data : {"open":status,"uid":tid},
        success: function (data) {
        	if(data=='1') {
        		if(status=='开'){
        			$("#"+open).html('关');
        		}else{
        			$("#"+open).html('开');
        		}
        	} else {
        		layer.msg('更新失败', {icon: 5});
        		return false;
        	}
        }
    });
})
</script>
{/block}
